package com.zmyuan.demo.netty.api;

import com.google.protobuf.ByteString;
import com.zmyuan.demo.netty.annotation.RequestMapping;
import com.zmyuan.demo.netty.protobuf.MsgProtobuf;
import org.springframework.stereotype.Component;

/**
 * Created by zhudebin on 2017/2/14.
 */
@Component
@com.zmyuan.demo.netty.annotation.MsgAPI
public class MsgAPI {

    @RequestMapping(cmd = "savePerson")
    public MsgProtobuf.Person savePerson(ByteString person) {

        return MsgProtobuf.Person.getDefaultInstance();
    }

}
